package com.fbs.demo1111.aop.controller;

import com.fbs.demo1111.aop.permission.MyPermission;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class Controller1 {

    @PostMapping("/list")
    @MyPermission
    public String list() {
        System.out.println("查看用户");
        return "list";
    }

    @PostMapping("/delete")
    @MyPermission
    public String delete() {
        System.out.println("删除用户");
        return "delete";
    }
}